#ifndef _SERVERSOCKET_H
#define _SERVERSOCKET_H

#include <fstream>
#include <sstream>
#include <iostream>
#include "basesocket.h"

class ServerSocket : public BaseSocket
{
public:
    ServerSocket(int port);
    ServerSocket() {};
    virtual ~ServerSocket();

    bool sendFile(const std::string& path) const;
    int recvFile(const std::string& path);

    const ServerSocket& operator<<(const std::string&) const;
    const ServerSocket& operator>>(std::string&) const;

    void accept(ServerSocket&);
};


#endif
